import http from './../interface.js'

// GET 科普标签列表 /api/doctors.science/cate
export const cate = (data) => {
	return http.request({
		url: '/doctors.science/cate',
		method: 'GET',
		data,
	})
}
// GET 科普列表 /api/doctors.science/listcontent
export const listcontent = (data) => {
	return http.request({
		url: '/doctors.science/listcontent',
		method: 'GET',
		data,
	})
}
// POST 发布科普 /api/doctors.science/addcontent
export const addcontent = (data) => {
	return http.request({
		url: '/doctors.science/addcontent',
		method: 'POST',
		data,
	})
}
// POST 科普点赞/取消点赞 /api/doctors.science/like
export const like = (data) => {
	return http.request({
		url: '/doctors.science/like',
		method: 'POST',
		data,
	})
}

// POST 评论 /api/doctors.science/addcomment
export const addcomment = (data) => {
	return http.request({
		url: '/doctors.science/addcomment',
		method: 'POST',
		data,
	})
}

// POST 提交反馈 /api/userapp.science/setfeedback
export const setfeedback = (data) => {
	return http.request({
		url: '/doctors.science/setfeedback',
		method: 'POST',
		data,
	})
}

// POST 收藏/取消收藏 /api/userapp.science/setfavorite
export const setfavorite = (data) => {
	return http.request({
		url: '/doctors.science/setfavorite',
		method: 'POST',
		data,
	})
}
// GET 科普详情 /api/doctors.science/detail
export const detail = (data) => {
	return http.request({
		url: '/doctors.science/detail',
		method: 'GET',
		data,
	})
}
// GET 科普评论列表 /api/doctors.science/comment
export const comment = (data) => {
	return http.request({
		url: '/doctors.science/comment',
		method: 'GET',
		data,
	})
}

// GET 医生的评论列表 /api/doctors.science/ccomment
export const ccomment = (data) => {
	return http.request({
		url: '/doctors.science/ccomment',
		method: 'GET',
		data,
	})
}

// GET 我发布的科普 /api/doctors.science/mycontent
export const mycontent = (data) => {
	return http.request({
		url: '/doctors.science/mycontent',
		method: 'GET',
		data,
	})
}
// GET 科普点赞列表 /api/doctors.science/likecontent
export const likecontent = (data) => {
	return http.request({
		url: '/doctors.science/likecontent',
		method: 'GET',
		data,
	})
}

/**
 * 医生客户端-科普接口
 */

export default {
	cate, 			//科普标签列表
	listcontent, 	//科普列表
	addcontent, 	//发布科普
	like,			//科普点赞/取消点赞 
	addcomment,		//评论
	setfeedback,	//提交反馈
	setfavorite,	//收藏/取消收藏
	detail,			//科普详情
	comment,		//科普评论列表
	ccomment,		//医生的评论列表
	mycontent,		//我发布的科普
	likecontent,	//科普点赞列表

}
